//
//  StrategyCollectionViewCell.m
//  BeautifulShoppings
//
//  Created by GivenBmli on 16/9/5.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "StrategyCollectionViewCell.h"
#import "StrategyUpModel.h"
#import "UIImageView+WebCache.h"
#import "TAMacro.h"
@implementation StrategyCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame{
    self  = [super initWithFrame:frame];
    if (self) {
        [self creatSubview:frame];
    }
    return self;
}
-(void)setStrategyUpModel:(StrategyUpModel *)StrategyUpModel{
    [self.banner_image_url sd_setImageWithURL:[NSURL URLWithString:StrategyUpModel.banner_image_url] placeholderImage:[UIImage imageNamed:@"站位"]];
    self.id.text =[NSString stringWithFormat:@"%ld",(long)StrategyUpModel.Id];
}

-(void)creatSubview:(CGRect)frame{
    
    self.banner_image_url = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0,  SCREEN_WIDTH / 2.5, SCREEN_WIDTH / 4.5)];
    [self.contentView addSubview:self.banner_image_url];
}

@end
